package cn.fengwoo.springBoot.enums;

/**
 * Created by fangdaji on 2018/1/10.
 */
public enum ResultEnum {
    NOT_TOKEN(906,"非法请求，请传入token"),
    TOKEN_FAILURE(903,"登录过期"),
    OTHER_LOGIN(904,"用户在其它设备登录"),
    UNKONW_ERROR(200, "未知错误"),
    SUCCESS(900, "成功"),

    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
